<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="/common/include/include_head.jsp"%>
<%@ include file="/common/include/include_ext.html" %>
<%@ include file="/common/include/include_listGrid.html" %>
<%@ include file="/common/include/include_card.html" %>
<script type="text/javascript" src="resource/jslib/public/treeMenu.js"></script>
<script type="text/javascript" src="resource/jslib/system/orgnization.js"></script>
<script type="text/javascript">
	/**
		配置grid
	*/
	pageparam.order = "SSEQUENCE";
 	pageparam.businame = "sys_unit";
	pageparam.title = '组织机构信息';
 	pageparam.tags = {
		0:{tag:"SID",shw:"ID",siz:"80",hidden:true},
		1:{tag:"SCODE",shw:"单位代码",siz:"60",hidden:true},
		2:{tag:"SNAME",shw:"名称",siz:"120"},
		3:{tag:"SFNAME",shw:"全名称",siz:"180"},
		4:{tag:"SFCODE",shw:"全代码",siz:"100",hidden:true},
		5:{tag:"SFID",shw:"全id",siz:"100",hidden:true},
		6:{tag:"SORGKINDID",shw:"单位类型",siz:"100",hidden:true},
		7:{tag:"SSEQUENCE",shw:"序列",siz:"100",hidden:true},
		8:{tag:"SPARENT",shw:"父id",siz:"60",hidden:true},
		9:{tag:"SLEVEL",shw:"级别",siz:"60",align:"center"},
		10:{tag:"SPHONE",shw:"电话",siz:"80",align:"center"},
		11:{tag:"SFAX",shw:"传真",siz:"80",align:"center"},
		12:{tag:"SADDRESS",shw:"地址",siz:"100",hidden:true},
		13:{tag:"SZIP",shw:"邮编",siz:"80",align:"center"},
		14:{tag:"SDESCRIPTION",shw:"描述",siz:"60",hidden:true},
		15:{tag:"SNODEKIND",shw:"节点类型",siz:"100",hidden:true},
		16:{tag:"SORDER",shw:"排序",siz:"60",hidden:true},
		17:{tag:"SDELFLAG",shw:"删除标记",siz:"60",hidden:true}
	};
	/**
		配置form card页
	*/
	pageparam.form = [{ 
		   		title: '组织机构信息', remark: '组织机构信息。',col:2,
		        fields: [{ stype:"text", label: "单位代码", name:"SCODE",     prompt: ""},
					 { stype:"text", label: "名称", name:"SNAME",    prompt: ""},
					 { stype:"text", label: "全名称", name:"SFNAME",    prompt: ""},
					 { stype:"text", label: "全代码", name:"SFCODE",    prompt: ""},
					 { stype:"text", label: "全id", name:"SFID",    prompt: ""},
					 { stype:"text", label: "单位类型", name:"SORGKINDID",    prompt: ""},
					 { stype:"text", label: "序列", name:"SSEQUENCE",    prompt: ""},
					 { stype:"text", label: "父id", name:"SPARENT",     prompt: ""},
					 { stype:"text", label: "级别", name:"SLEVEL",     prompt: ""},
					 { stype:"text", label: "电话", name:"SPHONE",     prompt: ""},
					 { stype:"text", label: "传真", name:"SFAX",     prompt: ""},
					 { stype:"text", label: "地址", name:"SADDRESS",     prompt: ""},
					 { stype:"text", label: "邮编", name:"SZIP",     prompt: ""},
					 { stype:"text", label: "描述", name:"SDESCRIPTION",     prompt: ""},
					 { stype:"text", label: "节点类型", name:"SNODEKIND",     prompt: ""},
					 { stype:"text", label: "排序", name:"SORDER",     prompt: ""},
					 { stype:"text", label: "删除标记", name:"SDELFLAG",     prompt: ""}
				]
			}];
			
 	//查询语句
	function comboCondition(){
  		var cond = "";
  		var arg0=arguments[0]?arguments[0]:"";
  		if(arg0.length>0){
	  		if(cond.length>0) cond+=" and ";
	  		cond+="  SPARENT = '"+arg0+"' "
	  	}
  		return cond;
  	}
	searchdata();
  </script>